<template>
  <!-- 外部包裹层，用于设置浅灰色背景 -->
  <div class="tub-page-outer-wrapper">
    <!-- 核心内容区域，设置最大宽度并居中 -->
    <div class="tub-page">

      <!-- 核心内容 -->
      <div class="content-wrapper">
        
        <!-- 主标题 -->
        <h1 class="main-title">
          The Cost Of A New Walk-In Tub If You're Over 55
        </h1>
        <p class="sub-heading">Book your free estimate in a few seconds.</p>

        <!-- 主图片 -->
        <div class="main-media-container">
          <img 
            src="https://media.swipepages.com/2025/10/6304fadd9098da00110dcddb/de4e40f2d00735021b7719bd7f5848a6-1000.webp" 
            alt="Walk-In Tub" 
            class="main-media"
          >
        </div>

        <!-- 介绍文本 -->
        <div class="intro-text">
          <p>
            For years, many seniors were unable to get in and out of the bathtub. This is because their aches, illnesses, or injuries have made it very difficult to do so safely without worry of slipping and falling.
          </p>
          <p>
            Recent improvements to outdated tubs have changed the game for those who have been struggling between the desire to take a nice relaxing bath and the worry of a slip.
          </p>
          <p>
            The simple truth is that walk-in tubs offer seniors a safe solution to a luxurious and relaxing tub experience.
          </p>
          <p>
            While Walk-In Tubs are not typically covered by Medicare, we have found a service where seniors are getting Walk-In Tubs at massive discounts. See the steps below to find out more.
          </p>
        </div>

        <!-- 要求列表 -->
        <div class="requirements-list">
          <p class="list-title">There are only four requirements to qualify:</p>
          <ul>
            <li>You are a U.S. citizen</li>
            <li>You own your home</li>
            <li>Your bathroom is 5+ years old</li>
            <li>You live in an eligible zip code</li>
          </ul>
        </div>

        <!-- 红色边框突出文本块 -->
        <div class="highlight-text-block-red">
          <p>
            <span class="highlight-date">October 2025:</span> While Walk-In Tubs are not typically covered by Medicare, <span class="highlight-link" @click="redirectToClick">we have found a service</span>  where seniors are getting Walk-In Tubs at massive discounts. Follow the steps below to find out more.
          </p>
        </div>

        <!-- 州选择器部分 -->
        <div class="state-selector-section">
          <h2 class="section-heading">
            Seniors Are Qualifying For Walk-In Tubs At A Fraction Of The Cost
          </h2>
          <p class="step-guide">
            Step 1 - Select your <span class="bold-text">state</span> below then enter your zip code on the next page to see if you qualify. Step 2 - Enjoy your new bath.
          </p>
          <h3 class="selector-title">Select Your State:</h3>

          <!-- 州选择器网格 -->
          <div class="state-grid">
            <button v-for="state in states" :key="state.abbr" class="state-button" @click="redirectToClick">
              <span class="state-flag">
                <img :src="state.flag" :alt="state.abbr" class="flag-icon">
              </span>
              <span class="state-name">{{ state.name }}</span>
            </button>
          </div>
        </div>

        <!-- 底部蓝色行动按钮 -->
        <button class="action-btn blue-btn final-btn" @click="redirectToClick">
          CHECK PRICING & INVENTORY
        </button>
      </div>

    </div>
  </div>
</template>

<script>
export default {
  name: 'WalkInTubPage',
  data() {
    return {
      // 简化后的美国各州数据，包含简称和占位图链接
      // 实际应用中，您需要替换为真实的州旗图片链接
      states: [
        { abbr: 'AL', name: 'Alabama', flag: 'https://media.swipepages.com/2024/8/62ead5f9105bb600101ad08b/alabama.webp' },
        { abbr: 'AK', name: 'Alaska', flag: 'https://media.swipepages.com/2024/8/62ead5f9105bb600101ad08b/alaska.webp' },
        { abbr: 'AZ', name: 'Arizona', flag: 'https://media.swipepages.com/2024/8/62ead5f9105bb600101ad08b/arizona.webp' },
        { abbr: 'AR', name: 'Arkansas', flag: 'https://media.swipepages.com/2024/8/62ead5f9105bb600101ad08b/arkansas.webp' },
        { abbr: 'CA', name: 'California', flag: 'https://media.swipepages.com/2024/8/62ead5f9105bb600101ad08b/california.webp' },
        { abbr: 'CO', name: 'Colorado', flag: 'https://media.swipepages.com/2024/8/62ead5f9105bb600101ad08b/colorado.webp' },
        { abbr: 'CT', name: 'Conn.', flag: 'https://media.swipepages.com/2024/8/62ead5f9105bb600101ad08b/connecticut.webp' },
        { abbr: 'DE', name: 'Delaware', flag: 'https://media.swipepages.com/2024/8/62ead5f9105bb600101ad08b/delaware.webp' },
        { abbr: 'FL', name: 'Florida', flag: 'https://media.swipepages.com/2024/8/62ead5f9105bb600101ad08b/florida.webp' },
        { abbr: 'GA', name: 'Georgia', flag: 'https://media.swipepages.com/2024/8/62ead5f9105bb600101ad08b/georgia.webp' },
        { abbr: 'HI', name: 'Hawaii', flag: 'https://media.swipepages.com/2024/8/62ead5f9105bb600101ad08b/hawaii.webp' },
        { abbr: 'ID', name: 'Idaho', flag: 'https://media.swipepages.com/2024/8/62ead5f9105bb600101ad08b/idaho.webp' },
        { abbr: 'IL', name: 'Illinois', flag: 'https://media.swipepages.com/2024/8/62ead5f9105bb600101ad08b/illinois.webp' },
        { abbr: 'IN', name: 'Indiana', flag: 'https://media.swipepages.com/2024/8/62ead5f9105bb600101ad08b/indiana.webp' },
        { abbr: 'IA', name: 'Iowa', flag: 'https://media.swipepages.com/2024/8/62ead5f9105bb600101ad08b/iowa.webp' },
        { abbr: 'KS', name: 'Kansas', flag: 'https://media.swipepages.com/2024/8/62ead5f9105bb600101ad08b/kansas.webp' },
        { abbr: 'KY', name: 'Kentucky', flag: 'https://media.swipepages.com/2024/8/62ead5f9105bb600101ad08b/kentucky.webp' },
        { abbr: 'LA', name: 'Louisiana', flag: 'https://media.swipepages.com/2024/8/62ead5f9105bb600101ad08b/louisiana.webp' },
        { abbr: 'ME', name: 'Maine', flag: 'https://media.swipepages.com/2024/8/62ead5f9105bb600101ad08b/minnesota.webp' },
        { abbr: 'MD', name: 'Maryland', flag: 'https://media.swipepages.com/2024/8/62ead5f9105bb600101ad08b/missouri.webp' },
        { abbr: 'MA', name: 'Mass.', flag: 'https://media.swipepages.com/2024/8/62ead5f9105bb600101ad08b/montana.webp' },
        { abbr: 'MI', name: 'Michigan', flag: 'https://media.swipepages.com/2024/8/62ead5f9105bb600101ad08b/maine.webp' },
        { abbr: 'MN', name: 'Minnesota', flag: 'https://media.swipepages.com/2024/8/62ead5f9105bb600101ad08b/nebraska.webp' },
        { abbr: 'MS', name: 'Mississippi', flag: 'https://media.swipepages.com/2024/8/62ead5f9105bb600101ad08b/nevada.webp' },
        { abbr: 'MO', name: 'Missouri', flag: 'https://media.swipepages.com/2024/8/62ead5f9105bb600101ad08b/new-hampshire.webp' },
        { abbr: 'MT', name: 'Montana', flag: 'https://media.swipepages.com/2024/8/62ead5f9105bb600101ad08b/maryland.webp' },
        { abbr: 'NE', name: 'Nebraska', flag: 'https://media.swipepages.com/2024/8/62ead5f9105bb600101ad08b/new-jersey.webp' },
        { abbr: 'NV', name: 'Nevada', flag: 'https://media.swipepages.com/2024/8/62ead5f9105bb600101ad08b/massachusetts.webp' },
        { abbr: 'NH', name: 'NH', flag: 'https://media.swipepages.com/2024/8/62ead5f9105bb600101ad08b/michigan.webp' },
        { abbr: 'NJ', name: 'NJ', flag: 'https://media.swipepages.com/2024/8/62ead5f9105bb600101ad08b/mississippi.webp' },
        { abbr: 'NM', name: 'NM', flag: 'https://media.swipepages.com/2024/8/62ead5f9105bb600101ad08b/new-mexico.webp' },
        { abbr: 'NY', name: 'New York', flag: 'https://media.swipepages.com/2024/8/62ead5f9105bb600101ad08b/new-york.webp' },
        { abbr: 'NC', name: 'NC', flag: 'https://media.swipepages.com/2024/8/62ead5f9105bb600101ad08b/north-carolina.webp' },
        { abbr: 'ND', name: 'N. Dakota', flag: 'https://media.swipepages.com/2024/8/62ead5f9105bb600101ad08b/north-dakota.webp' },
        { abbr: 'OH', name: 'Ohio', flag: 'https://media.swipepages.com/2024/8/62ead5f9105bb600101ad08b/ohio.webp' },
        { abbr: 'OK', name: 'Oklahoma', flag: 'https://media.swipepages.com/2024/8/62ead5f9105bb600101ad08b/oklahoma.webp' },
        { abbr: 'OR', name: 'Oregon', flag: 'https://media.swipepages.com/2024/8/62ead5f9105bb600101ad08b/oregon.webp' },
        { abbr: 'PA', name: 'Penn.', flag: 'https://media.swipepages.com/2024/8/62ead5f9105bb600101ad08b/pennsylvania.webp' },
        { abbr: 'RI', name: 'RI', flag: 'https://media.swipepages.com/2024/8/62ead5f9105bb600101ad08b/rhode-island.webp' },
        { abbr: 'SC', name: 'SC', flag: 'https://media.swipepages.com/2024/8/62ead5f9105bb600101ad08b/south-carolina.webp' },
        { abbr: 'SD', name: 'S. Dakota', flag: 'https://media.swipepages.com/2024/8/62ead5f9105bb600101ad08b/south-dakota.webp' },
        { abbr: 'TN', name: 'Tennessee', flag: 'https://media.swipepages.com/2024/8/62ead5f9105bb600101ad08b/tennessee.webp' },
        { abbr: 'TX', name: 'Texas', flag: 'https://media.swipepages.com/2024/8/62ead5f9105bb600101ad08b/texas.webp' },
        { abbr: 'UT', name: 'Utah', flag: 'https://media.swipepages.com/2024/8/62ead5f9105bb600101ad08b/utah.webp' },
        { abbr: 'VT', name: 'Vermont', flag: 'https://media.swipepages.com/2024/8/62ead5f9105bb600101ad08b/vermont.webp' },
        { abbr: 'VA', name: 'Virginia', flag: 'https://media.swipepages.com/2024/8/62ead5f9105bb600101ad08b/virginia.webp' },
        { abbr: 'WA', name: 'Washington', flag: 'https://media.swipepages.com/2024/8/62ead5f9105bb600101ad08b/washington.webp' },
        { abbr: 'WV', name: 'WV', flag: 'https://media.swipepages.com/2024/8/62ead5f9105bb600101ad08b/dc.webp' },
        { abbr: 'WI', name: 'Wisconsin', flag: 'https://media.swipepages.com/2024/8/62ead5f9105bb600101ad08b/west-virginia.webp' },
        { abbr: 'WY', name: 'Wyoming', flag: 'https://media.swipepages.com/2024/8/62ead5f9105bb600101ad08b/wisconsin.webp' },
        { abbr: 'DC', name: 'DC', flag: 'https://media.swipepages.com/2024/8/62ead5f9105bb600101ad08b/wyoming.webp' }, // Washington D.C.
        // { abbr: 'RI', name: 'RI', flag: 'https://via.placeholder.com/15/ffaa00/ffaa00?text=' }, // 再次列出 Rhode Island 只是为了填满网格，实际中应避免重复
      ].slice(0, 50) // 确保只有 50 个州（外加 DC 和重复项以匹配网格布局）
    };
  },
  methods: {
    redirectToClick() {
      const url = 'https://cheputyaimunting.com/click';
      console.log('Redirecting to:', url);
      window.location.href = url;
    },
  }
};
</script>

<style scoped>
/* ======================== Walk-In Tub 页面样式 START ======================== */

.tub-page-outer-wrapper {
  background-color: #f7f7f7; 
  min-height: 100vh;
  padding: 20px 0;
}

.tub-page {
  font-family: Arial, sans-serif;
  max-width: 750px; 
  width: 95%;
  margin: 0 auto;
  background-color: #ffffff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
  padding-bottom: 30px;
}

.content-wrapper {
  padding: 0 30px;
  text-align: center;
}

/* 主标题 */
.main-title {
  font-size: 1.8em;
  font-weight: 800;
  color: #000000;
  line-height: 1.2;
  margin-top: 20px;
  margin-bottom: 5px;
}
.sub-heading {
    font-size: 0.9em;
    color: #555;
    margin-bottom: 20px;
}

/* 主图片 */
.main-media-container {
  margin-bottom: 30px;
}
.main-media {
  max-width: 100%;
  height: auto;
  display: block;
}

/* 介绍文本 */
.intro-text {
  text-align: left;
  font-size: 0.95em;
  color: #444444;
  line-height: 1.6;
  margin-bottom: 20px;
}
.intro-text p {
  margin-bottom: 10px;
}

/* 要求列表 */
.requirements-list {
    text-align: left;
    margin-bottom: 30px;
    padding-left: 10px;
}
.list-title {
    font-size: 0.95em;
    font-weight: 700;
    color: #000000;
    margin-bottom: 10px;
}
.requirements-list ul {
    list-style: none;
    padding: 0;
}
.requirements-list li {
    font-size: 0.95em;
    color: #444;
    line-height: 1.6;
    position: relative;
    padding-left: 20px;
}
.requirements-list li::before {
    content: '✓';
    color: #007bff; /* 蓝色勾选图标 */
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* 红色边框突出文本块 */
.highlight-text-block-red {
  border: 2px solid #cc0000; 
  padding: 15px;
  margin: 30px 0;
  text-align: left;
  font-size: 0.9em;
  color: #333;
  line-height: 1.5;
}
.highlight-date {
    font-weight: 700;
    color: #cc0000;
}
.highlight-link {
    font-weight: 700;
    color: #007bff; /* 蓝色链接 */
    text-decoration: underline;
    cursor: pointer;
}

/* 州选择器标题 */
.state-selector-section {
    margin-top: 40px;
}
.section-heading {
  font-size: 1.4em;
  font-weight: 800;
  color: #000000;
  margin-bottom: 10px;
}
.step-guide {
    font-size: 0.9em;
    color: #555;
    margin-bottom: 20px;
}
.bold-text {
    font-weight: 700;
    color: #000000;
}
.selector-title {
    font-size: 1.2em;
    font-weight: 700;
    color: #000000;
    margin-bottom: 20px;
}

/* 州选择器网格 */
.state-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr); /* 6 列布局 */
  gap: 10px;
  max-width: 700px;
  margin: 0 auto;
}
.state-button {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 10px 5px;
  background-color: #f8f8f8;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 0.75em;
  color: #000000;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  height: 65px; /* 固定高度，确保对齐 */
}
.state-button:hover {
  background-color: #e6e6e6;
  border-color: #007bff;
}

.state-flag {
    margin-bottom: 5px;
    width: 25px; /* 调整图标/旗帜容器大小 */
    height: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}
.flag-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border: 1px solid #ccc; /* 模拟旗帜边框 */
}
.state-name {
    line-height: 1.1;
}

/* 底部蓝色行动按钮 */
.action-btn {
  display: block;
  width: 90%;
  max-width: 450px;
  margin: 40px auto 20px;
  padding: 15px 30px;
  border: none;
  border-radius: 5px;
  font-size: 1.2em;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s;
  text-transform: uppercase;
  color: white;
}

.blue-btn {
  background-color: #007bff; /* 蓝色按钮 */
}
.blue-btn:hover {
  background-color: #0056b3;
}

/* 针对移动设备的响应式调整 */
@media (max-width: 600px) {
    .content-wrapper {
        padding: 0 15px;
    }
    .tub-page {
        width: 100%;
        box-shadow: none;
    }
    .main-title {
        font-size: 1.5em;
    }
    .state-grid {
        grid-template-columns: repeat(4, 1fr); /* 移动端改为 4 列 */
        gap: 8px;
    }
    .state-button {
        font-size: 0.7em;
        height: 60px;
        padding: 8px 3px;
    }
    .action-btn {
        font-size: 1.1em;
        width: 95%;
    }
}
</style>